
#ifndef __SYS_H__
#define __SYS_H__


class SYS
{
private:
public:
    SYS(void);
    void DelayUs(uint32 us);
    void DelayMs(uint32 us);
    uint8 Xor8(void *buff, uint32 len);
    uint8 Mod8(void *buff, uint32 len);
    uint16 Mod16(void *buff, uint32 len);
    uint32 Mod32(void *buff, uint32 len);
    uint8 Crc8(void *buff, uint32 len);
    uint16 Crc16(void *buff, uint32 len);
    uint32 Random(uint32 max);
    void Fill(void *buff, uint32 len, uint8 val);
    void Copy(void *buf1, void *buf2, uint32 len);
    bool Comp(void *buf1, void *buf2, uint32 len);
    long AbsLong(long num);
    float AbsFloat(float num);
    float BigByteArrayToFloat(uint8* buff);
};
extern SYS Sys;

#endif
